package com.wwu.system.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;

/**
 * 导航菜单实体类
 * @author 一蓑烟雨
 * @version 1.0.0
 * @date 2023-06-30 15:19
 */
@Data
@Accessors(chain = true)
@ApiModel(value="Menu:导航菜单实体类", description="导航菜单实体类")
public class MenuVO {
    @ApiModelProperty(value = "菜单名称")
    @JSONField(ordinal = 1)
    private String title;

    @ApiModelProperty(value = "菜单图标")
    @JSONField(ordinal = 2)
    private String  icon;

    @ApiModelProperty(value = "菜单地址")
    @JSONField(ordinal = 3)
    private String href;

    @ApiModelProperty(value = "菜单打开方式")
    @JSONField(ordinal = 4)
    private String target;

    @ApiModelProperty(value = "菜单id")
    @JSONField(ordinal = 5)
    private String id;

    @ApiModelProperty(value = "父菜单id")
    @JSONField(ordinal = 6)
    private String pid;

    @ApiModelProperty(value = "子菜单列表")
    @JSONField(ordinal = 7)
    private List<MenuVO> child;

}
